#import "YLMessage.h"

@implementation YLMessage

+(void)post:(NSString*)name what:(NSInteger)what {
   [self post:name what:what desc:@"" obj:@""];
}

+(void)post:(NSString*)name what:(NSInteger)what obj:(id)obj {
    [self post:name what:what desc:@"" obj:obj];
}

+(void)post:(NSString*)name what:(NSInteger)what desc:(NSString*)desc {
    [self post:name what:what desc:desc obj:@""];
}

+(void)post:(NSString*)name what:(NSInteger)what desc:(NSString*)desc obj:(id)obj {
    YLMessage *message = [[YLMessage alloc]init];
    message.what = what;
    message.desc = desc;
    message.obj  = obj;
    [[NSNotificationCenter defaultCenter] postNotificationName:name object:message];
}

@end
